import { swiper, swiperSlide, swiperLightBox } from 'vue-awesome-swiper'

export default {
  name: 'goodsDetails',
  components: {
    swiper,
    swiperSlide,
    swiperLightBox
  },
  data () {
    return {
      index: 0,
    	goodsNum: 0,
    	isShowLightBox: false,
      swiperOption: {
        // autoplay: 3000,
        pagination : '.swiper-pagination'
        ,paginationClickable: true
//      ,grabCursor : true
//      ,autoHeight: true
      },
      swiperImgs: [
      	"../../static/img/goods/goods2.png"
      	,"../../static/img/goods/goods1.png"
      	,"../../static/img/goods/goods3.png"
      	,"../../static/img/goods/goods4.png"
      ],
      isCollected: false,
      customerService: false,
      whyTrust: false,
      littleKnowledge: false
    }
  },
  mounted: function(){
  	window.document.title = "商品详情";
  },
  methods: {
		showBox: function(msg){
  		this.isShowLightBox = true;
  		this.index = msg;
  	},
  	hideBox: function(){
  		this.isShowLightBox = false;
  	},
  	buyNow: function(){
  		this.$router.push("/placeOrder");
  	}
	}
}